// 失物招领
import axios from '@/api/request/request'

// 分页查询失物招领信息
const pageLostAndFound = (option: any) => {
  return axios.post('/news/lostAndFound/pageLostAndFound', {
    ...option
  })
}

// 新增失物招领信息
const saveLostAndFound = (option: any) => {
  return axios.post('/news/lostAndFound/saveLostAndFound', {
    ...option
  })
}

// 更新失物招领信息
const updateLostAndFound = (option: any) => {
  return axios.post('/news/lostAndFound/updateLostAndFound', {
    ...option
  })
}

// 根据id查询失物招领信息表
const getLostAndFoundById = (option: any) => {
  return axios.post('/news/lostAndFound/getLostAndFoundById', {
    ...option
  })
}

// 删除失物招领信息
const deleteLostAndFound = (option: any) => {
  return axios.post('/news/lostAndFound/deleteLostAndFound', {
    ...option
  })
}

export { pageLostAndFound, saveLostAndFound, updateLostAndFound, getLostAndFoundById, deleteLostAndFound }
